package ymr.gui;


import javax.swing.*;


public class Starter {
	
	private static String getTitle(Object o) {
		return o.getClass().getSimpleName();
	}
	/**
	 * 
	 * @param frame - name of window to be shown
	 * @param width - width of window
	 * @param height - height of window
	 */
	public static void run(final JFrame frame, int width, int height) {
		frame.setTitle(getTitle(frame));
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frame.setSize(width, height);
		frame.setLocation(800, 10);
		frame.setVisible(true);
	}

}

